package com.dlc.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 *
 * @author zp
 * @date 2024-01-18 16:53:38
 */
@Data
@TableName("tz_stock_point_sku")
public class StockPointSku implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId
    private Long stockPointSkuId;
    @Schema(description = "库存点id")
    private Long stockPointId;
    @Schema(description = "库存点类型 1仓库 2门店")
    private Integer stockPointType;
    @Schema(description = "prodId")
    private Long prodId;
    @Schema(description = "skuid")
    private Long skuId;
    @Schema(description = "状态 1:enable, 0:disable, -1:deleted")
    private Integer status;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "更新时间")
    private Date updateTime;
    @Schema(description = "仓库类型（0默认仓库，1区域仓库）")
    private Integer type;
    @Schema(description = "库存模式 1共享总部库存 2独立销售库存")
    private Integer stockMode;

    @Schema(description = "库存")
    @TableField(exist = false)
    private Integer stock;

    @Schema(description = "店铺id")
    @TableField(exist = false)
    private Long shopId;

    public StockPointSku(){
    }

    public StockPointSku(Long stockPointId, Integer stockPointType, Long prodId, Long skuId, Integer status, Integer type, Integer stockMode) {
        this.stockPointId = stockPointId;
        this.stockPointType = stockPointType;
        this.prodId = prodId;
        this.skuId = skuId;
        this.status = status;
        this.type = type;
        this.stockMode = stockMode;
    }
}
